<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - 文章列表</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> 
    <link th:href="@{/admin/css/bootstrap.min.css?v=3.3.6}" rel="stylesheet">
    <link th:href="@{/admin/css/font-awesome.css?v=4.4.0}" rel="stylesheet">

    <link th:href="@{/admin/css/animate.css}" rel="stylesheet">
    <link th:href="@{/admin/css/style.css?v=4.1.0}" rel="stylesheet">
	<style type="text/css">
		#add{
			position: fixed;
			right: 0px;
			top: 0px;
			width:70px;
			height:70px;
			border-radius:50%;
			border:1px solid black; 
			z-index: 9999;
			margin: 0 auto;
			background: yellow;
		}
	</style>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight blog">
     <a id="add" class="pull-right btn-link" th:href="@{'/admin/article/form/'+${columnId}}" ></a>
        <div class="" th:each="article,iterStat:${articleList}">
            <div class="col-lg-4">
            
                <div class="ibox" >
                    <div class="ibox-content">
                        <a th:href="@{'/admin/article/details/'+${article.id}}" class="btn-link">
                            <h2 th:text="${article.title}"></h2>
                        </a>
                        <div class="small m-b-xs">
                            <strong th:text="${article.author}"></strong> <span class="text-muted" th:utext="'<i class=\'fa fa-clock-o\'></i>'+${#dates.format(article.publishTime, 'yyyy-MM-dd HH:mm')}"> 3 小时前</span>
                        </div>
                        <div th:utext="${article.content}">
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <h5>标签：</h5>
                                <span th:each="keyword,iterStat:${#strings.setSplit(article.keyWord,'#')}">
	                                <button class="btn btn-primary btn-xs" type="button" th:if="${iterStat.index}==0" th:text="${keyword}">Apple Watch</button>
	                                <button class="btn btn-white btn-xs" type="button"  th:unless="${iterStat.index}==0" th:text="${keyword}">速比涛</button>
                                </span>
                            </div>
                            <div class="col-md-6">
                                <div class="small text-right">
                                    <h5>状态：</h5>
                                    <div> <i class="fa fa-comments-o"> </i> 56 评论 </div>
                                    <i class="fa fa-eye"> </i> 144 浏览
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                
            </div>
        </div>
    </div>

    <!-- 全局js -->
    <script th:src="@{/admin/js/jquery.min.js?v=2.1.4}"></script>
    <script th:src="@{/admin/js/bootstrap.min.js?v=3.3.6}"></script>

    <!-- 自定义js -->
    <script th:src="@{/admin/js/content.js?v=1.0.0}"></script>


    
    

</body>

</html>
